package com.lanxin.controller;

import com.lanxin.service.dept.feign.DeptService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by cyh on 2021/3/8.
 */
@RestController
@RequestMapping("user")
public class UserController {

    @Autowired
    private DeptService deptService;

    @RequestMapping("listuser")
    public String listuser(){
        return "listuser "+deptService.listdept();
    }
}
